using imitateMacQQ.WebApi.Domain.Request.utils;

namespace imitateMacQQ.WebApi.Domain.utils;

public interface IUploadService
{
    /// <summary>
    /// 图片上传
    /// </summary>
    /// <param name="files">file</param>
    /// <param name="account">上传者用户</param>
    /// <param name="path">分类路径</param>
    /// <returns></returns>
    public Task<bool> UploadFile(IFormFileCollection files, string account, string path);
    /// <summary>
    /// 获取用户头像
    /// </summary>
    /// <param name="account">用户</param>
    /// <returns></returns>
    public Task<Request<string>> GetHeader(string account);
    /// <summary>
    /// 获取图片内容
    /// </summary>
    /// <param name="account">获取者账户</param>
    /// <param name="include">获取的图片类型</param>
    /// <returns></returns>
    public Task<Request<string>> Get_Url(string account, string include);
}